//
// Created by Administrator on 2024/8/1.
//

#include "jtt809_0x120b.h"

namespace protocol {
    void JTT809_0x120B::serialize(MessagePackWriter &writer) {
        JTT809SubBody::serialize(writer);
        writer.writeUint(sourceDataType);
        writer.writeUint(sourceMsgSn);
        writer.writeUint(eWayBillLength);
        eWayBillInfo.serialize(writer);
    }

    void JTT809_0x120B::deserialize(MessagePackReader &reader) {
        JTT809SubBody::deserialize(reader);
        reader.readUint(sourceDataType);
        reader.readUint(sourceMsgSn);
        reader.readUint(eWayBillLength);
        eWayBillInfo = Container<char>(reader, eWayBillLength);
    }
} // jtt809
